package DesignMode.Decorator;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}0:18
 */
public class CoffeeBar {


    public static void main(String[] args) {
        // 装饰者模式下的订单

        //点一份LCoffee
        Dringk dringk = new LCoffee();
        System.out.println("费用1:"+dringk.cost());
        System.out.println("描述信息:"+dringk.getDes());

        //加入巧克力
        dringk = new Chocolate(dringk);
        System.out.println("费用2:"+dringk.cost());
        System.out.println("描述信息"+dringk.getDes());
    }
}
